package use_case.handlereturns;

public class Slot {
	private Storage storage;
	private Scanner itemScanner = new Scanner();
	
	public Slot(Storage internalStorage){
		storage = internalStorage;
	}
	
	public Boolean inputItem(itemDescription item){
	
		if (itemScanner.checkID(item))
		{	
			if(storage.addItem(item))
				return true;
			else
			{
				System.out.println("KIOSK IS FULL!!!");
				return false;
			}
		}
		else
		{
			return false;
		} 
	}

}
